package com.sheep.jucdemo.part2.part2_7;

/**
 * @Date 2022/4/12 20:18
 * @Created by sheep
 *
 * E:\workspace_idea\idea2021\helloIdea\demo\juc-demo\target\classes\com\sheep\jucdemo\part2\part2_7>javap -c Test2_7_2.class
 */
public class Test2_7_2 {
    private Long value;

    public synchronized Long getCount() {
        return value;
    }

    public synchronized void inc() {
        ++value;
    }
}
